
from django.urls import path
from .views import BookAPIView1, BookAPIView2
from .views import BookMixinView1, BookMixinView2, BookModelViewSet

from rest_framework.routers import DefaultRouter
from django.conf.urls import include
router = DefaultRouter()
router.register(r'apibook5', BookModelViewSet)


urlpatterns = [
    # http://127.0.0.1:8000/no_2/apibook1/?apikey=auser&isbn=777777
    path('apibook1/', BookAPIView1.as_view(), name="book1"),
    path('apibook2/', BookAPIView2.as_view(), name="book2"),
    path('apibook3/', BookMixinView1.as_view(), name="book3"),
    path('apibook4/', BookMixinView2.as_view(), name="book4"),
    path('', include(router.urls))
]
